﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Chung/QLSV.Master" AutoEventWireup="true" CodeBehind="Lop.aspx.cs" Inherits="proRFID_DiemDanh.Lop.Lop" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
    <link href="CssLop.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentMain" runat="server">
<div style="text-align:center; width:100%" >
    <fieldset style="width:700px">
        <legend>Danh sách lớp học</legend>
        <table  align="center">
            <tr>
                <td>
                    <table class="border" style="text-align:center">
                    <tr>
                        <th width="50px">
                            Mã lớp
                        </th>
                        <th width="250px" >
                            Khoa
                        </th>
                        <th width="120px">
                            Tên lớp
                        </th>                                    
                        <th width="30px">
                            Sửa
                        </th>
                        <th>
                            Chi tiết
                        </th>
                        <th>
                            Xóa
                        </th>
                    </tr>
                    <asp:Repeater ID="rpt_danhsach" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("MALOP") %>
                                </td>
                                <td style="text-align:left">
                                    <%#Eval("TENKHOA") %>
                                </td>
                                <td >
                                    <%#Eval("TENLOP")%>
                                </td>                                                                   
                                <td>
                                    <a  href='/Lop/SuaLop.aspx?IDLop=<%#Eval("MALOP")%>&makhoa=<%#Eval("MAKHOA") %>&tenlop=<%#Eval("TENLOP") %>'>
                                        <img src="../Chung/img/edit.png" width="15px"/>
                                    </a>
                                </td>
                                <td>
                                    <a  href='/Lop/DSSinhVien.aspx?ID=<%#Eval("MALOP")%>&TenLop=<%#Eval("TENLOP")%>'>
                                        <img src="../Chung/img/chitiet.png" width="20px"/>
                                    </a>
                                </td> 
                                <td>
                                    <input name="xoa" type="checkbox" value=<%#Eval("MALOP") %> />
                                </td>
                            </tr>
                    
                        </ItemTemplate>
                    </asp:Repeater>
                    
                </table>
                </td>
            </tr>
            <tr>
                <td colspan="6" style="text-align:right;">
                    <asp:ImageButton ID="cmdThem" runat="server" ImageUrl="~/Chung/img/add.png" 
                        CssClass="nutnhan" onclick="cmd_them_Click"/>
                    <asp:ImageButton ID="cmdXoa" runat="server" ImageUrl="~/Chung/img/delete.png" 
                        CssClass="nutnhan" onclick="cmd_xoa_Click"/>
                </td>
            </tr>
        </table>
        
    </fieldset>
</div>
</asp:Content>
